package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.IWgtsMyFansActivityModel;
import com.wgts.wgts.mvp.model.imp.WgtsMyFansActivityModel;
import com.wgts.wgts.mvp.presenter.IWgtsMyFansActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.WgtsMyFansActivityPresenter;
import com.wgts.wgts.mvp.view.IWgtsMyFansActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

@Module
public class WgtsMyFansActivityModule {
    private IWgtsMyFansActivityView view;

    public WgtsMyFansActivityModule(IWgtsMyFansActivityView view) {
        this.view = view;
    }

    @Provides
    @ActivityScope
    public IWgtsMyFansActivityView provideView(){
        return view;
    }

    @Provides
    @ActivityScope
    public IWgtsMyFansActivityModel provideModel(NetService netService){
        return new WgtsMyFansActivityModel(netService);
    }

    @Provides
    @ActivityScope
    public IWgtsMyFansActivityPresenter providePresenter(IWgtsMyFansActivityView view, IWgtsMyFansActivityModel model){
        return new WgtsMyFansActivityPresenter(view, model);
    }
}
